package com.dream.cgomall.service;

import com.dream.cgomall.dto.*;
import com.dream.cgomall.entity.CgoAdmin;

/**
 * (CgoAdmin)表服务接口
 *
 * @author makejava
 * @since 2021-07-01 23:59:51
 */
public interface CgoAdminService {
    //注册功能
    public ServiceResult<UserDTO> singUp(CgoAdmin cgoAdmin,String code);

    //登录功能
    ServiceResult<UserDTO> Login(String phone,String password);
    //短信登录
    ServiceResult SmsLogin(String phone);
    //换绑手机
    ServiceResult chengePhone(String phone);

    //获取Userinfo,加载我的页面
    ServiceResult loadMyPage(Integer id);
    //加载用户详情页
    ServiceResult getUserinfo(Integer id);
    //修改数据
    ServiceResult updateUserinfo(CgoAdmin cgoAdmin);
}
